package cn.zorbus.laian.infrastructure.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

import java.util.List;

/**
 * create in 2023/12/4 02:27
 *
 * @author shishaodong
 * @version 0.0.1
 */
@Data
@Validated
@Component("app")
@ConfigurationProperties(prefix = "cn.zorbus.video")
public class VideoProperties {

    private String url = "http://127.0.0.1:9000";

    private String path = "D:\\video\\";

    private List<String> suffix = List.of(".mp4", ".avi", ".rmvb", ".wmv", ".jpg", ".png", ".gif", ".jpeg");

    private List<String> video = List.of(".mp4", ".avi", ".rmvb", ".wmv");

    private List<String> image = List.of(".jpg", ".png", ".gif", ".jpeg");

    private Integer maxDepth = 3;
}
